import Vue from 'vue'
import App from '@/App.vue'
import router from '@/global/router'
import store from '@/global/store'
import event from '@/utils/event'
import cache from '@/api/cache'
import VueResource from 'vue-resource'
import ElementUI from 'element-ui'
import * as echarts from 'echarts'
import 'echarts-liquidfill'

import global from './global/global'
Vue.use(ElementUI)

Vue.use(VueResource)
// 应用插件
Vue.prototype.$notify = Notification

Vue.prototype.$event = event
Vue.prototype.$cache = cache
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

Vue.prototype.global = global
